 /*
 * Copyright 2009-2010 by glorial.,
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of glorial. ("Confidential Information").
 */
package com.igs.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @FileName	: GuaranteeInfos.java
 * @Project		: IGS
 * @Date		: 2009. 07. 06
 * @Author		: glorial
 * @Desc		:
 * @history     :
 */
public class GuaranteeInfos {
	private List guaranteeInfos = null;
	
	public void setGuaranteeInfos(GuaranteeInfo guaranteeInfo){
		if(this.guaranteeInfos == null){
			this.guaranteeInfos = new ArrayList();
		}
		this.guaranteeInfos.add(this.guaranteeInfos.size(), guaranteeInfo);
	}
	
	public GuaranteeInfo getGuaranteeInfo(int index){
		if(guaranteeInfos == null){
			return null;
		}else{
			if(this.getSize() >= index)
	            return (GuaranteeInfo)guaranteeInfos.get(index);
	        else
	            return null;
		}
	}
	
	public List getGuaranteeInfos(){
		if(this.guaranteeInfos == null){
			return null;
		}else{
			return this.guaranteeInfos;
		}
	}
	
	public int getSize(){
		if(this.guaranteeInfos == null){
			return 0;
		}else{
			return this.guaranteeInfos.size();
		}
	}
}
